package com.xzy.e;

import com.xzy.service.StudentService;
import lombok.ToString;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 说明：
 *
 * @author xzy
 * @date 2021/12/5 17:28
 */
@Slf4j
@ToString
public class ServiceA {
    private StudentService studentService;

    public ServiceA() {
        log.info("实例化 => {}", "ServiceA()");
    }

    @Autowired
    public void setStudentService(StudentService studentService) {
        log.info("属性赋值|依赖注入 => setStudentService(StudentService studentService)");
        this.studentService = studentService;
    }
}